package com.xzzz.backend.blog.server.base.sys;

import org.springframework.stereotype.Service;

@Service
public class SysService {

//    @Autowired
//    public String uploadFile(MultipartFile file, Long folderId) {
//        FolderEntity folder = folderService.selectById(folderId);
//        String storePath = "";
//        if (folder != null) {
//            storePath = folder.getStorePath();
//        }
//
//
//        String filename;
//        filename = file.getOriginalFilename();
//        try (InputStream inputStream = file.getInputStream()) {
//            String filepath = osManager.put(filename, inputStream);
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//        throw new XzException500("上传文件失败.");
//    }

}
